package com.wang.ymcc.feignclient;


import com.wang.lwm.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "service-course",fallbackFactory = CourseControllerFallBack.class)
public interface CourseServerFegin {
    @GetMapping(value = "/course/courseState/{id}")
    public JSONResult courseStateById(@PathVariable Long id);

    @GetMapping("/course/info/{ids}")
    public JSONResult info(@PathVariable String ids);
}
